package net.shopxx.dao;

import java.util.Date;
import java.util.List;

import net.shopxx.dto.TbOrderDTO;
import net.shopxx.entity.ShuaItem;
import net.shopxx.pager.AccountsPageable;
import net.shopxx.pager.Page;

/**
 * Dao - 刷单处理DAO
 * 
 * @author frankie
 * @version 3.0
 */
public interface ShuaDao extends BaseDao<ShuaItem, Long>{

	public  Long countRecentShuaItem(String userName, String qq, Integer storeId, Date beginDate, Date endDate);
	
	/**
	 * 获取刷单信息
	 * @param order
	 * @return 刷单信息
	 */
	public List<ShuaItem> getInitShuaOrder(TbOrderDTO order);

	/**
	 * 获取统计信息
	 * 
	 * @param pageable
	 * @return 统计信息
	 */
	public Page<ShuaItem> findStatsPage(AccountsPageable pageable);


	/**
	 * 获取统计总金额
	 * 
	 * @param pageable
	 * @return 统计总金额
	 */
	public Float findStatsSum(AccountsPageable pageable);


	/**
	 * 获取统计总比数
	 * 
	 * @param pageable
	 * @return 统计总比数
	 */
	public Long findStatsCount(AccountsPageable pageable);

	/**
	 * 获取佣金总金额
	 * 
	 * @param pageable
	 * @return 佣金总金额
	 */
	public Float findCommissionSum(AccountsPageable pageable);
	

}
